package com.yyq.adms.usermanage.pojo;
// default package

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.yyq.sos.pojo.BackBaseEntity;

/**
 * SsSysDepts entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ss_sys_depts")
public class SysDepts extends BackBaseEntity implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8206385637113760072L;
	// Fields
	private String deptName;
	private String deptCname;
	private Integer parentId=new Integer(0);
	private String telephone;
	private String email;
	private String addr;
	private String deptLevel;
	private String deptType;  // 0:部门，1:组织
	private String sts;
	private Date stsDate;
//	private Date createDate;
	private String remark;
	private Long deptId;
	
	@Transient
	public Long getDeptId() {
		return deptId;
	}
	public void setDeptId(Long deptId) {
		this.deptId = deptId;
	}


	public String toString() {
		StringBuffer str = new StringBuffer();
		str.append("\r\n目录ID="+this.id);
		str.append("\r\n;角色名称="+this.deptName);
		str.append("\r\n;角色中文名="+this.deptCname);
		str.append("\r\n;父目录ID="+this.parentId);
		str.append("\r\n;电话="+this.telephone);
		str.append("\r\n;Email="+this.email);
		str.append("\r\n;地址="+this.addr);
		str.append("\r\n;deptLevel="+this.deptLevel);
		str.append("\r\n;部门类型="+this.deptType);
		str.append("\r\n;状态="+this.sts);
		str.append("\r\n;备注="+this.remark);
		return str.toString();
	}
	

	// Constructors

	/** default constructor */
	public SysDepts() {
	}

	/** minimal constructor */
	public SysDepts(Long deptId) {
		this.id = deptId;
	}

	/** full constructor */
	public SysDepts(Long deptId, String deptName, String deptCname,
			String telephone, String email, String addr, String deptLevel,
			String sts, Date stsDate, String remark) {
		this.id = deptId;
		this.deptName = deptName;
		this.deptCname = deptCname;
		this.telephone = telephone;
		this.email = email;
		this.addr = addr;
		this.deptLevel = deptLevel;
		this.sts = sts;
		this.stsDate = stsDate;
//		this.createDate = createDate;
		this.remark = remark;
	}

	// Property accessors


	@Column(name = "dept_name", nullable = false, length = 30)
	public String getDeptName() {
		return this.deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	@Column(name = "dept_cname", nullable = false, length = 60)
	public String getDeptCname() {
		return this.deptCname;
	}

	public void setDeptCname(String deptCname) {
		this.deptCname = deptCname;
	}

	@Column(name = "telephone", length = 15)
	public String getTelephone() {
		return this.telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	@Column(name = "email", length = 50)
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "addr", length = 100)
	public String getAddr() {
		return this.addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

	@Column(name = "dept_level", length = 30)
	public String getDeptLevel() {
		return this.deptLevel;
	}

	public void setDeptLevel(String deptLevel) {
		this.deptLevel = deptLevel;
	}

	@Column(name = "sts", length = 4)
	public String getSts() {
		return this.sts;
	}

	public void setSts(String sts) {
		this.sts = sts;
	}

	@Column(name = "sts_date")
	public Date getStsDate() {
		return this.stsDate;
	}

	public void setStsDate(Date stsDate) {
		this.stsDate = stsDate;
	}

//	@Column(name = "create_date")
//	public Date getCreateDate() {
//		return this.createDate;
//	}
//
//	public void setCreateDate(Date createDate) {
//		this.createDate = createDate;
//	}

	@Column(name = "remark", length = 200)
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "parent_id")
	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	@Column(name = "dept_type")
	public String getDeptType() {
		return deptType;
	}

	public void setDeptType(String deptType) {
		this.deptType = deptType;
	}

}